package com.taxipark.service;

import java.util.ArrayList;
import java.util.List;

import com.taxipark.domain.TaxiDriver;


public class SimpleReestr implements Reestr {
	private List<TaxiDriver> list = new ArrayList<TaxiDriver>();

	@Override
	public void save(TaxiDriver driver) {
		list.add(driver);
	}

	@Override
	public List<TaxiDriver> getAll() {
		return list;
	}

	@Override
	public void delete(TaxiDriver driver) {
		list.remove(driver.getId() - 1);

	}



}
